define(['hr.common'
], function(common
){
    function InitModel(){
        var p = {
            url: '/hosLog/findAllByPage',
            param: '',
            //场景一：columns和operation中width字段值使用百分比，其总和为100%；
            //场景二：columns和operation中width字段值用固定像素值，比如'50px'
            columns: [
                [
                ]
            ],
            operation: [
                {width: '5%',icon: 'icon-search',text: '详细', clickOperations: 'showData'},
                {width: '5%',icon: 'icon-pencil',text: '修改', clickOperations: 'updateData'},
                {width: '5%',icon: 'icon-cancel-2',text: '删除', clickOperations: 'deleteData'}
            ],
            pageItem: {'id': '10', 'text': '10'},
            title: '日志表列表'
        };
        var tableModel = common.createTableModel(p);
        var model  = {
            searchModel: {
            },
            tableModel: tableModel,
            dialogModel: {
                hosLogModel: {
                    id: ko.observable(''),
                    /*
                    通过extend方法，添加对该字段的验证规则，下面示例表示，content字段必填且最大长度为20
                    content: ko.observable().extend({
                        required: {
                            message:'字典名称不允许为空'
                        },
                        maxLength: {
                            params: 20,
                            message:'字典说明长度不允许超过{0}'
                        }
                    })
                    */
                }
            }
        };
        return model;
    }
    return InitModel;
});